﻿using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class tuttext : MonoBehaviour {

	// Use this for initialization

	public int message;
	public Text thetext;
	public Image theimage;

	void Start () {
		message = 1;
		thetext.text = "\nHoly hell the town's on fire! There are people in those houses.\nWhat do we do now?\n\n(LMB to continue)";
	}
	
	// Update is called once per frame
	void Update () {

	
	}

	public void updatetext(){


		if( message == 2)
			thetext.text = "\nChoose a burning house to see where the fire will spread next turn.\n\n(LMB to select a burning house)";
		
		if( message == 3)
			thetext.text = "\nThe nearby houses will catch fire next turn.\n One person will escape per turn unless a fireman helps them.\n\n(LMB to select a Fireman)";
		
		if( message == 4)
			thetext.text = "\nFiremen will evacuate two people from a house per turn.\n\n(RMB to place a Fireman on a house)";
		
		if( message == 5)
			thetext.text = "\nWhen you've finished placing your Firemen, select a Fire Engine.\n\n (LMB to select a Fire Engine)";

		if( message == 6)
			thetext.text = "\nThe Fire Engine stops a house fire from spreading, but only temporarily.\n\n(RMB to place a Fire Engine on a house))";

		if( message == 7)
			thetext.text = "\nRescue as many people as possible before the town is consumed by fire.\n\n(Click on END TURN)";

		if( message == 8)
			thetext.text = "\nSomebody didn't make it out.\nOne person in a burning house will die per turn unless a fireman rescues them.\n\n(LMB to continue)";

	}
}
